<?php
namespace App\Http\Controllers\Home;
use App\Http\Controllers\Controller;
class SpiderController extends Controller{
	public function index(){
		header( "Content-type:text/html;Charset=utf-8" );
        $spiderarr=array();

        $url ="https://www.7067h.com:8443/detailNumbers/24";

		$curl  = curl_init();
		curl_setopt($curl,CURLOPT_URL,$url);
		curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,FALSE);
		curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,FALSE);
		curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
		$result=curl_exec($curl);
		curl_close($curl);
        var_dump($result);die;

        preg_match_all("/<tr><td><div><div>.*<\/div><div>(.*)<\/div><div>.*<\/div><div>.*<\/div><div>.*<\/div><\/div><\/td>/isU",$result,$matchs);
        var_dump($matchs);
        
	}
}